package kr.hkit.powerjava.homework;

public class Triangle extends Shape{
	private int w;
	private int h;
	private int wh;
	public int getW() {
		return w;
	}
	public int getWh() {
		return wh;
	}

	public Triangle(int w, int h, int wh) {
		this.w = w;
		this.h = h;
		this.wh = wh;
	}

	public void setWh(int wh) {
		this.wh = wh;
	}

	public void setW(int w) {
		this.w = w;
	}

	public int getH() {
		return h;
	}

	public void setH(int h) {
		this.h = h;
	}

	@Override
	public int 둘레() {
		// TODO Auto-generated method stub
		super.둘레();
		int a = w*h*wh;
		return a;
	}

	@Override
	public int 면적() {
		// TODO Auto-generated method stub
		super.면적();
		int b = (w*h)/wh;
	return b;
	}

	@Override
	public String toString() {
		return super.toString()+"\nTriangle [w=" + w + ", h=" + h + "]";
	}
	public static void main(String[] args) {
		Triangle tr = new Triangle(5, 10, 15);
		System.out.println(tr);
	}
}
